package com.wk1un2.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.wk1un2.entity.ProductCategory;

public interface ProductCategoryMapper {
	// ��ȡ������Ʒ������Ϣ
	// �������з��༯��
	public List<Map<String, Object>> getAll(@Param("page") int page, @Param("limit") int limit,
			@Param("pcat_name") String pcat_name);

	public List<Map<String, Object>> getCategory(@Param("pcat_name") String pcat_name);

	public Integer getProCount(@Param("pcat_id") int pcat_id);

	public Integer count();

	public Integer add(Map<String, Object> map);

	public Integer update(Map<String, Object> map);

	public Integer delete(@Param("pcat_id") int pcat_id);
}